package com.aizhixin.lab.project.template.repository;

import com.aizhixin.lab.project.template.entity.ModuleTaskFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ModuleTaskFileRepository extends JpaRepository<ModuleTaskFile,String> {
    List<ModuleTaskFile> findByTaskIdAndDeleteFlag(String taskId,Integer deleteFlag);
    List<ModuleTaskFile> findByTaskIdInAndDeleteFlag(List<String> taskIds,Integer deleteFlag);
    Integer deleteByTaskId(String taskId);
    Integer countByTaskIdInAndDeleteFlag(List<String> taskIds, Integer deleteFlag);
}
